package com.yang.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "liver_relation")
public class LiverRelationEntity {
    @Id
    @Column(name = "id")
    private long id;

    @Column(name = "user_id")
    private long userId;

    @Column(name = "room_id")
    private long roomId;

    @Column(name = "order_form_id")
    private long orderFormId;

    @Column(name = "guest_id")
    private  long guestId;

    @Column(name = "status")
    private String status;

    public LiverRelationEntity() {
    }

    /**
     *
     * @param id
     * @param userId
     * @param roomId
     * @param orderFormId
     * @param guestId
     * @param status
     */
    public LiverRelationEntity(long id,long userId,long roomId,long orderFormId,long guestId,String status) {
        this.id = id;
        this.userId = userId;
        this.roomId = roomId;
        this.orderFormId = orderFormId;
        this.guestId = guestId;
        this.status = status;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getRoomId() {
        return roomId;
    }

    public void setRoomId(long roomId) {
        this.roomId = roomId;
    }

    public long getOrderFormId() {
        return orderFormId;
    }

    public void setOrderFormId(long orderFormId) {
        this.orderFormId = orderFormId;
    }

    public long getGuestId() {
        return guestId;
    }

    public void setGuestId(long guestId) {
        this.guestId = guestId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "LiverRelationEntity{" +
                "id=" + id +
                ", userId=" + userId +
                ", roomId=" + roomId +
                ", orderFormId=" + orderFormId +
                ", guestId=" + guestId +
                ", status='" + status + '\'' +
                '}';
    }
}
